const TOKEN_KEY = 'hmtt80-channels'


export const saveChannels = (list) => {
    localStorage.setItem(TOKEN_KEY, JSON.stringify(list))
}

export const getChannels = () => {
    return JSON.parse(localStorage.getItem(TOKEN_KEY))
}

export const delChannels = () => {
    localStorage.removeItem(TOKEN_KEY)
}